package main

import (
	"fmt"
	"unsafe"
)

func main() {

	var b = 'a'

	var a byte = 'a'
	println(a)     //97
	fmt.Println(a) //97

	fmt.Printf("%T\n", a)     //uint8  1个字节
	println(unsafe.Sizeof(a)) //1

	fmt.Printf("%T\n", b)     //int32
	println(unsafe.Sizeof(b)) //4

	var c = '哈'

	fmt.Printf("%T\n", c)     //int32
	println(unsafe.Sizeof(c)) //4

	var d rune = '哈'          //rune是int32的别名，几乎在所有方面等同于int32  它用来区分字符值和整数值
	fmt.Printf("%T\n", d)     //int32
	println(unsafe.Sizeof(d)) //4

}
